package com.hbnu.innerclass;

public abstract class Human {
    public String name;
    public int age;
    //alt+ins生成set和get

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

//    public void eat(){
//        System.out.println("吃东西");
//    }
    public abstract void eat();
}
